package com.app.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_incident")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class IncidentModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer departmentId;//部门
    private Integer level;//提出级别
    private String name;//名称
    private String theme;//主题
    private String summarize;//总结
    private Integer warnTime;//持续时间
    private String warning;//警示
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    @TableField(exist = false)
    private String departmentText;
    @TableField(exist = false)
    private String levelText;
    //@ExcelProperty(index = 0)
    private Integer number;  //序号
}
